# $Id: PKGBUILD 290221 2017-03-09 16:12:45Z arojas $
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>

pkgname=kajongg
pkgver=17.08.1
pkgrel=1
pkgdesc="The ancient Chinese board game for 4 players"
url="https://kde.org/applications/games/kajongg/"
arch=(any)
license=(GPL LGPL FDL)
groups=(kde-applications kdegames)
depends=(python-twisted python-pyqt5 libkmahjongg hicolor-icon-theme)
makedepends=(extra-cmake-modules kdoctools)
optdepends=('vorbis-tools: for playing sounds')
conflicts=(kdegames-kajongg)
replaces=(kdegames-kajongg)
source=("https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz"{,.sig})
sha256sums=('a59e30b490130121e205ca8b9a9a9f02e4e501309d71ebf7bdb263be08af7e81'
            'SKIP')
validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7  # Albert Astals Cid <aacid@kde.org>
              F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck <cfeck@kde.org>

prepare() {
  mkdir -p build
}

package() {
  cd build
  export DESTDIR="$pkgdir"
  cmake ../$pkgname-$pkgver \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release
  make install
}
